<template>
  <nav id="navbarID" class="navbar navbar-inverse " style="margin-bottom: 0px;"><!--navbar-fixed-top-->
    <div class="container-fluid">
      <div class="navbar-header">
        <a href="#" class="navbar-brand">博客屋</a>
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse">
          <span class="sr-only">切换导航</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
      </div>
      <div class="collapse navbar-collapse" id="navbar-collapse">
        <ul class="nav navbar-nav">
          <li class="active"><a href="#"><span class="glyphicon glyphicon-home"></span> 首页</a></li>
          <li><a href="http://blogwu.cn:8000/blogwuclass.html"><span class="glyphicon glyphicon-fire"></span> 视频</a></li>
          <li><a href="#"><span class="glyphicon glyphicon-list"></span> 博客</a></li>
          <li><a href="#"><span class="glyphicon glyphicon-comment"></span> 论坛</a></li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <li>
            <router-link v-bind:to="{ name:'UserAuthorization'}" data-toggle="modal" data-target="#layer"><span class="glyphicon glyphicon-user"></span>登录</router-link>
          </li>
          <li><a href="#"><span class="glyphicon glyphicon-edit"></span> 注册</a></li>
        </ul>
      </div>
    </div>
  </nav>
</template>

<script>
  export default {
    name: 'navigationBar',
    data () {
      return {
        msg: 'Welcome to Your Vue.js App'
      }
    }
  }
</script>
<style>
  .fade-enter-active, .fade-leave-active {
    transition: opacity .5s
  }
  .fade-enter, .fade-leave-to /* .fade-leave-active in below version 2.1.8 */ {
    opacity: 0
  }
</style>

